Component({
  properties: {
    isVisible: {
      type: Boolean,
      value: true,
    },
  },
  methods: {
    onClose() {
      this.triggerEvent('close'); // 触发自定义事件，通知父组件
    },
  },
});
